WPS Office.apk(点击下载) / khy.java


package defpackage;

import cn.wps.moffice.OfficeApp;
import cn.wps.moffice_eng.R;
import com.appsflyer.AppsFlyerProperties;
import com.google.gson.reflect.TypeToken;
import java.util.HashMap;
import java.util.List;

/* renamed from: khy  reason: default package */
public class khy extends khs<kht<List<khw>>> {
    private String enq;

    public khy(String str) {
        super("picture_option", 14400000);
        this.enq = str;
    }

    /* access modifiers changed from: protected */
    @Override // defpackage.khs
    public final boolean b(kht<List<khw>> kht) {
        return super.b(kht) && kht.getData().size() > 0;
    }

    public final String getKey() {
        return (gqt.bTm() ? "picture_option_cn" : "picture_option_com") + this.enq;
    }

    /* access modifiers changed from: protected */
    @Override // defpackage.khs
    public final kht<List<khw>> lE(String str) {
        try {
            HashMap hashMap = new HashMap();
            OfficeApp arx = OfficeApp.arx();
            hashMap.put("packagename", arx.getPackageName());
            hashMap.put("lang", eip.dHN);
            hashMap.put("version", arx.getString(R.string.app_version));
            hashMap.put("firstchannel", arx.arA());
            hashMap.put(AppsFlyerProperties.CHANNEL, arx.arB());
            return (kht) lvb.b(lwd.f((gqt.bTm() ? "https://moapi.wps.cn/api/longpic/" : "https://service-api.kingsoft-office-service.com/api/longpic/") + this.enq, hashMap), new TypeToken<kht<List<khw>>>() {
                /* class defpackage.khy.AnonymousClass1 */
            }.getType());
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
}